From: Florian Müllner Date: Wed, 29 Jan 2020 16:48:57 +0000 (+0100) Subject: js: Initialize some properties X-Git-Tag: archive/raspbian/50.5-1+rpi1~1^2~781^2^2~78 X-Git-Url: https://dgit.raspbian.org/%22http://www.example.com/cgi/%22/%22http:/www.example.com/cgi/%22?a=commitdiff_plain;h=53ac00eabba73c0bf6727393e5067dc4af2a58b1;p=gnome-shell.git js: Initialize some properties Otherwise those can result in the (harmless) "reference to undefined property" warnings. https://gitlab.gnome.org/GNOME/gnome-shell/merge_requests/970 --- diff --git a/js/ui/overview.js b/js/ui/overview.js index 82c326b10..10703e300 100644 --- a/js/ui/overview.js +++ b/js/ui/overview.js @@ -137,6 +137,7 @@ class OverviewActor extends St.BoxLayout { var Overview = class { constructor() { this._initCalled = false; + this._visible = false; Main.sessionMode.connect('updated', this._sessionUpdated.bind(this)); this._sessionUpdated(); diff --git a/js/ui/shellEntry.js b/js/ui/shellEntry.js index 3e304146e..c1a1f1134 100644 --- a/js/ui/shellEntry.js +++ b/js/ui/shellEntry.js @@ -166,6 +166,7 @@ class CapsLockWarning extends St.Label { let seat = Clutter.get_default_backend().get_default_seat(); this._keymap = seat.get_keymap(); + this._stateChangedId = 0; this.connect('notify::mapped', () => { if (this.is_mapped()) {